package com.ld.shieldsb.common.core.eventbus;

import com.google.common.eventbus.EventBus;

public class TestDeadEventListeners {

    public static void main(String[] args) throws Exception {

        EventBus eventBus = new EventBus("test");
        DeadEventListener deadEventListener = new DeadEventListener();
        eventBus.register(deadEventListener);

        eventBus.post(new TestEvent(200));
        eventBus.post(new TestEvent(300));

        System.out.println("deadEvent:" + deadEventListener.isNotDelivered());

    }
}
